﻿<Window x:Class="_04.LayoutDemo.CanvasEffectByGrid"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="CanvasEffectByGrid" Height="324" Width="407">
    <Grid>
        <!--note: WPF uses alginment+margin to simulate the anchoring effect, so 'Grid+Alignment+Margin' makes it like a canvas-->
        <Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="174,78,0,0" Name="button1" VerticalAlignment="Top" Width="75" />
        <Label Content="Label" Height="28" HorizontalAlignment="Left" Margin="53,41,0,0" Name="label1" VerticalAlignment="Top" />
        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,0,114,101" Name="textBox1" VerticalAlignment="Bottom" Width="120" />
    </Grid>
</Window>
